package com.aaa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (YzhUser)实体类
 *
 * @author makejava
 * @since 2023-06-06 10:22:20
 */
public class YzhUser implements Serializable {
    private static final long serialVersionUID = -86559208731189845L;
    
    private Integer id;
    
    private String username;
    
    private String password;
    
    private String sex;
    
    private String imgpath;

    // 响应给前端的时候 使用的注解   时间的毫秒数转化为yyyy-MM-dd
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    
    private String tel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getImgpath() {
        return imgpath;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

}

